﻿<%@ WebHandler Language="C#" Class="CreateWorkFlowProcess" %>

using System;
using System.Web;

public class CreateWorkFlowProcess : IHttpHandler {
    
    public void ProcessRequest (HttpContext context) {
        context.Response.ContentType = "text/plain";
        context.Response.Write("Hello World");
    }
 
    public bool IsReusable {
        get {
            return false;
        }
    }
    
    //public  string Process()
    //{
    //    string strWiid = string.Empty;
    //    string strErrorMsg = string.Empty;
    //    int nResult = flowOperation.BuildTask(ddlSerialType.SelectedValue, UserId, txtUserName.Value, ref strWiid, ref strErrorMsg);
    //    if (nResult == 1)
    //    {
    //        if (radioArray.SelectedIndex == 0)
    //        {
    //            Response.Redirect(string.Format("TaskInStepList.aspx?wid={0}&WorkFlowName={1}",
    //                ddlSerialType.SelectedValue, ddlSerialType.Text));
    //        }
    //    }
    //    else//创建流程失败
    //    {
    //        string strScript = string.Format("<script>alert(\"创建流程失败：{0}\")</script>", strErrorMsg);
    //        Page.ClientScript.RegisterStartupScript(this.GetType(), "alertMsg", strScript);
    //    }
    //}
}